<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="template-head.jsp" />
<jsp:include page="template-body.jsp"/>
<div id="sendrespondentpage">
<div class="container">
	<jsp:include page="errors.jsp"/>
	<c:choose>
		<c:when test="${sendsurvey == 'mailinglist'}">
		<p> Your Survey titled ${survey.title} has been sent to mailing list named ${survey.mailinglist}.</p>
		</c:when>
		<c:otherwise>
		<p> Your Survey titled ${survey.title} has been sent. </p>
		</c:otherwise>
	</c:choose>
     	<div id="sendrespondentpagebody">
		<form  method="post" action="sendsurvey.do">
			
			<div id="sendrespondentbackbutton">
				<c:if test="${sendsurvey == 'individual'}">
				<input type="submit" name="button" class="btn btn-success"  value="Send to more users">
				</c:if>
				<input type="submit" name="button" class="btn btn-inverse"  value="Go Back to View Survey">
			</div>
			<c:if test="${sendsurvey == 'individual'}">
			<div id="respondentid">
				Respondent Name : ${sendsurveyform.userid}
			</div>	
			<div id="respondentemail">
				Respondent Email : ${sendsurveyform.email}
			</div>
			</c:if>
		</form>
	</div>
</div>
</div>
<%-- 
<!--Create another space for contents' extension  -->
	<div class="container2">
	
	
 	</div>--%>
<jsp:include page="template-foot.jsp" /> 